<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/MiniStock.Entities.Common.Query" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/MiniStock.Entities.Common.Query" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType name="QueryToken">
    <xs:sequence>
      <xs:element minOccurs="0" name="OrderBy" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="PageIndex" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="PageSize" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Query" nillable="true" type="tns:ArrayOfFilterElement" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="QueryToken" nillable="true" type="tns:QueryToken" />
  <xs:complexType name="ArrayOfFilterElement">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="FilterElement" nillable="true" type="tns:FilterElement" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ArrayOfFilterElement" nillable="true" type="tns:ArrayOfFilterElement" />
  <xs:complexType name="FilterElement">
    <xs:sequence>
      <xs:element minOccurs="0" name="FieldName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="FieldValue" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Operator" type="tns:QueryOperator" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="FilterElement" nillable="true" type="tns:FilterElement" />
  <xs:simpleType name="QueryOperator">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Equals" />
      <xs:enumeration value="NotEquals" />
      <xs:enumeration value="LessThan" />
      <xs:enumeration value="LessEquals" />
      <xs:enumeration value="GreaterThan" />
      <xs:enumeration value="GreatEquals" />
      <xs:enumeration value="In" />
      <xs:enumeration value="Between" />
      <xs:enumeration value="Like" />
      <xs:enumeration value="IsNull" />
      <xs:enumeration value="IsNotNull" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="QueryOperator" nillable="true" type="tns:QueryOperator" />
</xs:schema>